package com.bishe.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @TableName order
 */
@TableName(value ="my_order")
@Data
public class Order implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("物品类型")
    private String item;

    @ApiModelProperty("物品重量")
    private String weight;

    @ApiModelProperty("寄件人")
    private String sender;

    @ApiModelProperty("寄件人电话")
    private String senderPhone;

    @ApiModelProperty("寄件人地址")
    private String senderAddress;

    @ApiModelProperty("收件人")
    private String recipient;

    @ApiModelProperty("收件人电话")
    private String recipientPhone;

    @ApiModelProperty("收件人地址")
    private String recipientAddress;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty("社团简介")
    private Integer status;

    @ApiModelProperty("备注")
    private String notes;

    @ApiModelProperty("关联id")
    private String uid;

    @ApiModelProperty("价格")
    private Double price;

    @ApiModelProperty("是否评价")
    private Integer isComment;

    @TableField(exist = false)
    @ApiModelProperty("结束时间")
    private Date endTime;

    @TableField(exist = false)
    @ApiModelProperty("开始时间")
    private Date startTime;

    private static final long serialVersionUID = 1L;
}